#pragma once
#include "MyGUI.h"

MyGUI::ControllerFadeAlpha* createControllerFadeAlpha(float _alpha, float _coef, bool _enable)
{
	MyGUI::ControllerItem* item = MyGUI::ControllerManager::getInstance().createItem(MyGUI::ControllerFadeAlpha::getClassTypeName());
	MyGUI::ControllerFadeAlpha* controller = item->castType<MyGUI::ControllerFadeAlpha>();

	controller->setAlpha(_alpha);
	controller->setCoef(_coef);
	controller->setEnabled(_enable);

	return controller;
}